/**
 * Licensed to the Apache Software Foundation （ASF） under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * （the "License"）； you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * <p>
 * https://www.q3z3.com
 * QQ : 939313737
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.platform.modules.sys.service;

import com.platform.common.web.service.BaseService;
import com.platform.modules.sys.domain.SysUser;

/**
 * <p>
 * 系统用户表 服务层
 * </p>
 */
public interface SysUserService extends BaseService<SysUser> {

    /**
     * 通过用户名查询用户
     */
    SysUser queryByUsername(String username);

    /**
     * 修改密码
     */
    void updPassword(SysUser sysUser);

    /**
     * 重置密码
     */
    void reset(SysUser sysUser);

    /**
     * 查询是否唯一
     */
    Integer uniqueUsername(SysUser sysUser);

    /**
     * 新增用户
     */
    Integer addSysUser(SysUser sysUser);

    /**
     * 修改用户
     */
    Integer editSysUser(SysUser sysUser);

    /**
     * 通过角色查询用户
     */
    Long queryByRoleId(Long roleId);

}
